import request from '../utils/request'

export function login(params) {
  return request('/api/login', {
    method: 'post',
    body: params
  })
}

export function getProduct() {
  return request('/api/product')
}

export function posts() {
  return request('/api/posts')
}
